package com.yfq.springframework;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 姚凤桥
 * @date 2022/11/22 17:15
 * @description
 */
public class UserDao {
    private static final Map<String, String> USER_MAP = new HashMap<>();

    static {
        USER_MAP.put("1", "张三");
        USER_MAP.put("2", "李四");
        USER_MAP.put("3", "王五");
    }

    public String getUserName(String id) {
        return USER_MAP.get(id);
    }
}
